package com.xxg.oauth2.service;

import com.xxg.oauth2.mapper.UserMapper;
import com.xxg.oauth2.vo.UserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

@Service
public class UserService  {

    @Autowired
    UserMapper userMapper;

    public UserVo findUserByName(String name){
        return userMapper.findUserByName(name);
    }


}
